package vip.xiaonuo.modular.sync;

import org.springframework.context.ApplicationEvent;
import vip.xiaonuo.modular.ydeviceevent.entity.YDeviceEvent;

public class DeviceEvent extends ApplicationEvent {

    private YDeviceEvent deviceEvent;

    public DeviceEvent(Object source, YDeviceEvent deviceEvent) {
        super(source);
        this.deviceEvent = deviceEvent;
    }

    public YDeviceEvent getDeviceEvent() {
        return deviceEvent;
    }

    public void setDeviceEvent(YDeviceEvent deviceEvent) {
        this.deviceEvent = deviceEvent;
    }


    public final static String syncDeviceTime = "syncDeviceTime";


    public final static String NEW = "NEW";
    public final static String END = "END";
}
